package cn.com.connext.scrm.repository.master;

import cn.com.connext.scrm.domain.master.QuickSelectProductIpad;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 2 * @Author: shawn
 * 3 * @Date: 2019/11/5 10:23 上午
 * 4
 */
@Repository
public interface QuickSelectProductIpadRepository extends JpaRepository<QuickSelectProductIpad, Integer>, JpaSpecificationExecutor {

    @Query(value = "select a from QuickSelectProductIpad a where a.wId in :ids")
    List<QuickSelectProductIpad> getAllByWId(@Param("ids") List<String> ids);
}
